package com.example.all4.condition;

import java.util.Map;
import java.util.function.Function;

public class EventList {

    public static Function<Map<String,Object>,Boolean> getIsLoginEvent(){
        return param -> {
            System.out.println("getIsLoginEvent");
            return true;
        };
    }

    public static Function<Map<String,Object>,Boolean> getIsBuyEvent(){
        return param -> {
            System.out.println("getIsBuyEvent");
            return true;
        };
    }

    public static Function<Map<String,Object>,Boolean> getIsLearnRecord(){
        return param -> {
            System.out.println("getIsLearnRecord");
            return false;
        };
    }

    public static Function<Map<String,Object>,Boolean> getIsFreeLessonEvent(){
        return param -> {
            System.out.println("getIsFreeLessonEvent");
            return true;
        };
    }

    public static Function<Map<String,Object>,Map<String,Object>> getIsFreeLessonTrueEvent(){
        return param -> {
            System.out.println("getIsFreeLessonTrueEvent=============");
            return null;
        };
    }



}
